package org.plr.ecommerce.view.category;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;

public class CategoryPage extends WebPage {

    private static final long serialVersionUID = 1L;

    //@SpringBean
    //private CategoryControler categoryControler;

    public CategoryPage() {
    }

    public CategoryPage(Long id) {
        CategoryModel categoryModel = new CategoryModel(id);
        
        CategoryModel parentCategoryModel = new CategoryModel();
        parentCategoryModel.getObject().addCategory(categoryModel.getObject());
        parentCategoryModel.create();
        add(new Label("message", categoryModel.getObject().getCategory().toString()));
    }
}
